package com.coldchain.message.im.service;


import com.coldchain.message.core.im.IMMessage;
import com.coldchain.message.core.im.IMUser;
import com.coldchain.message.im.base.BaseIMAccount;
import com.coldchain.message.core.im.MessageModeTyep;

public interface IMService<T extends BaseIMAccount> {
    public void setAccount(T t);

    /**
     * 注册用户
     * @param user
     * @throws Exception
     */
    public void register(IMUser user)throws Exception;

    /**
     * 获取用户签名/token
     * @param user
     * @return
     * @throws Exception
     */
    public String getToken(IMUser user)throws Exception;




    /**
     * 发送消息
     * @param message
     * @param message
     */
    public void sendMessage( IMMessage message)throws Exception;

}
